{{- range $cr := .Values.cephCsi.internal.crs }}
---
apiVersion: v1
kind: Secret
metadata:
  name: csi-{{ $cr.name }}
  namespace: d8-{{ $.Chart.Name }}
{{ include "helm_lib_module_labels" (list $ (dict "app" $.Chart.Name)) | indent 2 }}
stringData:
  # Credentials for RBD
  userID: {{ $cr.spec.userID }}
  userKey: {{ $cr.spec.userKey }}
  # Credentials for CephFS
  adminID: {{ $cr.spec.userID }}
  adminKey: {{ $cr.spec.userKey }}
{{- end }}
